-- drop function describe();
CREATE OR REPLACE FUNCTION describe(table_name text) RETURNS SETOF information_schema.columns AS $$ 
  /*
  ------------------------[ describe-1.0 ]-------------------------------------
  
  DESCRIPTION:
  Returns information for table 'table_name' by querying information_schema.columns.
    
  EXAMPLE:
  Note that this function should be called as "select [* or cols] from describe('table');"

  SELECT * FROM describe('pg_type') ORDER BY column_name;

  */
  
  SELECT * FROM information_schema.columns WHERE table_name LIKE $1; 

$$ language SQL;